/* 增强科技感 - 额外视觉效果样式 */

/* 闪烁的霓虹边框 */
.neon-border {
  position: relative;
  border: 1px solid transparent;
  border-radius: 5px;
  overflow: hidden;
}

.neon-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #00d4ff, #6c5ce7, #fd79a8, #00d4ff);
  background-size: 400% 400%;
  z-index: -1;
  margin: -2px;
  border-radius: inherit;
  animation: neonBorderAnimation 8s linear infinite;
}

@keyframes neonBorderAnimation {
  0% {
    background-position: 0% 50%
  }
  50% {
    background-position: 100% 50%
  }
  100% {
    background-position: 0% 50%
  }
}

/* 全息3D卡片效果 */
.hologram-card {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.3s ease;
}

.hologram-card:hover {
  transform: rotateX(5deg) rotateY(5deg);
}

.hologram-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(125deg, rgba(255,255,255,0.3) 0%, rgba(0,212,255,0.1) 40%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hologram-card:hover::before {
  opacity: 1;
}

/* 高科技能量脉冲 */
.energy-pulse {
  position: relative;
  overflow: hidden;
}

.energy-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(0, 212, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: energyPulse 3s ease-out infinite;
}

@keyframes energyPulse {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
  }
  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}

/* 数据流光效果 */
.data-stream {
  position: relative;
  overflow: hidden;
}

.data-stream::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100px;
  width: 50px;
  height: 100%;
  background: linear-gradient(to right, 
    transparent, 
    rgba(0, 212, 255, 0.5),
    transparent
  );
  transform: skewX(-25deg);
  animation: dataStream 5s linear infinite;
}

@keyframes dataStream {
  0% {
    left: -100px;
  }
  100% {
    left: 200%;
  }
}

/* 字体模糊修复 */
.no-blur {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 科技感矩阵背景 */
.matrix-bg {
  position: relative;
  overflow: hidden;
}

.matrix-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: -1;
}

/* 头盔显示屏效果 */
.hud-display {
  position: relative;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.hud-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 212, 255, 0.8);
  animation: hudScan 3s linear infinite;
}

@keyframes hudScan {
  0% {
    transform: translateY(0);
    opacity: 0.8;
  }
  75% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(100%);
    opacity: 0.8;
  }
}

/* 更多炫酷悬浮效果 */
.float-effect {
  animation: float-effect 4s ease-in-out infinite;
}

@keyframes float-effect {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 数据加载动画 */
.data-loading {
  position: relative;
}

.data-loading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, #00d4ff, #6c5ce7);
  animation: dataLoading 2s ease-out infinite;
}

@keyframes dataLoading {
  0% {
    width: 0;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

/* 闪光点缀效果 */
.glint-effect {
  position: relative;
  overflow: hidden;
}

.glint-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 30%);
  opacity: 0;
  transform: rotate(45deg);
  animation: glintAnimation 8s ease-in-out infinite;
}

@keyframes glintAnimation {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5) rotate(45deg) translate(-100%, -100%);
  }
  50% {
    opacity: 0.03;
  }
  10%, 90% {
    transform: scale(1) rotate(45deg) translate(100%, 100%);
  }
}

/* 电子眼效果 */
.cyber-eye {
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle, #6c5ce7, #00d4ff);
  animation: cyberEyePulse 3s ease-in-out infinite alternate;
}

@keyframes cyberEyePulse {
  0% {
    box-shadow: 0 0 10px #00d4ff;
  }
  100% {
    box-shadow: 0 0 30px #00d4ff, 0 0 50px rgba(0, 212, 255, 0.5);
  }
}
